package com.dataseek.iot.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "产品")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(value = "inner_product_id", type = IdType.AUTO)
    private Long innerProductId;

    /**
     * 产品编码
     */
    @ApiModelProperty(value = "产品编码",required = true)
    private String productCode;

    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称",required = true)
    private String productName;

    /**
     * 标签
     */
    @ApiModelProperty(value = "标签",required = true)
    private String tag;

    /**
     * 所属品类
     */
    @ApiModelProperty(value = "类别ID",required = true)
    private String categoryId;

    /**
     * 所属机构
     */
    @ApiModelProperty(value = "组织机构ID",required = true)
    private String orgId;

    /**
     * 所属类型
     */
    @ApiModelProperty(value = "类型",required = true)
    private String type;

    /**
     * 所属协议
     */
    @ApiModelProperty(value = "协议",required = true)
    private String protocol;

    /**
     * 设备数量
     */
    @ApiModelProperty(value = "设备数量",required = true)
    private Integer deviceNum;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;

    /**
     * 是否发布
     */
    @ApiModelProperty(value = "是否发布")
    private byte published;

    /**
     * 是否使用
     */
    @ApiModelProperty(value = "是否启用",required = true)
    private byte used;


}
